﻿using System;
using System.ServiceModel;
using System.Threading;

namespace SilverlightApplication1.Web
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class Service : IService
    {
        private static int _num;
        public Service()
        {
            Interlocked.Increment(ref _num);
        }
        public string DoWork(string date)
        {
            Thread.Sleep(100);
            return _num + "  " + date + "  " + DateTime.Now.ToShortTimeString();
        }
    }
}
